﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ErrorsLog.aspx.cs" Inherits="MLY.Reports.DataReports.ErrorsLog" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title><asp:Literal ID="TitleLiteral" runat="server" Text="<%$Dict:reportsParams.ErrorsReport %>"></asp:Literal></title>
    
    <link href="/Style/General_Style_v9.css" rel="stylesheet" type="text/css" />
    <link href="../../Style/ReportsStylesheet.css" rel="stylesheet" type="text/css" />
   
    <script src="../../TableSorter/jquery-latest.js" type="text/javascript"></script>
    <script src="../../TableSorter/jquery.tablesorter.js" type="text/javascript"></script>    
</head>
<body>
    <form id="form1" runat="server">
    <div class="InerTextStyle">
    <asp:ToolkitScriptManager ID="ScriptManager1" runat="server"></asp:ToolkitScriptManager>
    <asp:Panel ID="DirectionPanel" runat="server">
    <asp:UpdatePanel ID="UpdatePanel" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
    
        <asp:Label ID="PageTitleLabel" runat="server" Text="<%$ Dict:reportsParams.ErrorsReport %>" CssClass="TitleStyle"></asp:Label>
        <asp:Panel ID="DemoPanel" runat="server">
            <div class="democlass">
                the System's Errors Report produce a list 
                of error messages, each one with the date and the time that this error Occurred
            </div>
        </asp:Panel>
        <br />
        <asp:Panel ID="ReportsDefinitionPanel" runat="server">
        <table>
        <tr>
        <td>
            <asp:Label ID="DateFromTitleLabel" runat="server" Text='<%$Dict:reportsParams.Between %>'></asp:Label>
        </td>
        <td>
            <KBMControls:KBMReadOnlyTxtBox runat="server" ID="txtFromDate"></KBMControls:KBMReadOnlyTxtBox>
            <KBMValidators:requiredValidator ID="RequiredValidator1" runat="server" ControlToValidate="txtFromDate" ErrorMessage='<%$Dict:reportsParams.MustChooseBetweenTime %>'>
            </KBMValidators:requiredValidator>
            <KBMControls:KbmCalendar TargetControlID="txtFromDate" runat="server" ID="KbmCalendar1">
            </KBMControls:KbmCalendar>
        </td>
        
        <td>
            <asp:Label ID="DateTillTitleLabel"  runat="server"  Text='<%$Dict:reportsParams.And %>'></asp:Label>
        </td>
        <td>
            <KBMControls:KBMReadOnlyTxtBox runat="server" ID="txtToDate"></KBMControls:KBMReadOnlyTxtBox>
            <%--<KBMValidators:BiggerThenEqualDateValidator ID="BiggerThenEqualDateValidator1" Display="None"
                errorMessage='<%$Dict:reportsParams.ToDateSmallerThenFromDate %>' ControlToCompare="txtFromDate"
                ControlToValidate="txtToDate" runat="server"></KBMValidators:BiggerThenEqualDateValidator>--%>
            <KBMValidators:requiredValidator ID="RequiredValidator2" ControlToValidate="txtToDate" ErrorMessage='<%$Dict:reportsParams.MustChooseToDate %>'
                runat="server"></KBMValidators:requiredValidator>
            <KBMControls:KbmCalendar TargetControlID="txtToDate" runat="server" ID="Calendar1">
            </KBMControls:KbmCalendar>
        </td>
        </tr>
        <tr>
            <td>
            <asp:Button ID="GenerateReportButton" runat="server" Text="<%$ Dict:Reports.GenerateReport %>" OnClick="GenerateReport" />  
            </td>
            <td colspan="3">                
                <asp:UpdateProgress ID="Progress" runat="server" AssociatedUpdatePanelID="UpdatePanel">
                    <ProgressTemplate>
                        <asp:Image ID="ProgressImage" runat="server" ImageUrl="~/Images/ajax-loaderBar.gif" />
                    </ProgressTemplate>
                </asp:UpdateProgress>          
            </td>
            </tr>
        </table>
        <br />
        </asp:Panel>
        <asp:Panel ID="ReportPanel" runat="server" Visible="false">
            <asp:GridView ID="ErrorsGridview" runat="server" AutoGenerateColumns="false" CellPadding="5">
            <HeaderStyle CssClass="GridTitleStyle" />
            <RowStyle CssClass="InerTextStyle" />
            <Columns>
                <asp:BoundField DataField="timeReceived" HeaderText="<%$ Dict:Action.Time %>" />
                <asp:BoundField DataField="Message" HeaderText="<%$ Dict:Action.Message %>" />
            </Columns>
            <EmptyDataTemplate><asp:Literal runat="server" ID="NoLines" Text="<%$ Dict:SubContractors.lblNoMessages %>"></asp:Literal> </EmptyDataTemplate>
            </asp:GridView>
        </asp:Panel>
    </ContentTemplate>
    </asp:UpdatePanel>
    </asp:Panel>
    </div>
    </form>
</body>
</html>
